﻿<!--#include virtual="/Common/Config.asp" -->
<!--#include virtual="/Common/conn.asp" -->
<!--#include virtual="/Common/Function.asp" -->
<!--#include virtual="/Common/MD5.asp"-->
<!--#include virtual="/2010admin/Login_INC.asp" -->
<%
If Request.ServerVariables ("Request_Method")="POST" Then
	Call CheckLogin()	
Else
	If Request.QueryString("action") = "logout" Then
		Call Logout()
		'Response.end
	End If

	If Session("Admin_UserName")<>"" Then
		response.redirect "/2010admin/Admin_main.asp"
	End If
End If
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="/2010admin/css/default.css" type="text/css" rel="stylesheet">
<title><%=web_title%> | 管理登录</title>
<script type="text/javascript">
<!--
	function checkform(){
		UserName = document.login.uname.value;
		password = document.login.password.value;
		validate = document.login.validate.value;
		if(UserName=="")
		{
			alert("请输入用户名称!");
			document.login.uname.focus();
			return false;
		}
		if(password=="")
		{
			alert("请输入用户密码!");
			document.login.password.focus();
			return false;
		}
		if(validate=="" )
		{
			alert("请输入验证码!");
			document.login.validate.focus();
			return false;
		}
	}

	function UserNameGetFocus() {
		document.login.UserName.focus();
	}
//-->
</script>
</head>
<body>
<div id="loginall">
<form method="post" name="login" action="index.asp" onSubmit="return checkform();">
<table width="400" border="0" cellspacing="0" cellpadding="0" class="admin_login">
  <tr>
    <td class="al_tdh"><b>网站管理</b></td>
  </tr>
  <tr>
    <td class="al_tdc">
	<table width="580" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td rowspan="4" class="al_img"><a href="/"><img src="Images/al_img.gif" width="200" height="120" /></a></td>
        <td class="al_xm">用户名：</td>
        <td><input type="text" name="uname" class="al_txt"></td>
      </tr>
      <tr>
        <td class="al_xm">密 &nbsp; 码：</td>
        <td><input type="password" name="password" class="al_txt"></td>
      </tr>
      <tr>
        <td class="al_xm">验证码：</td>
        <td><input type="text" name="validate" size="4"  class="al_yzm"><img src="/Common/code.asp" onClick="this.src='/Common/code.asp?' + Math.floor(Math.random() * 99999 + 1)" align="absmiddle" alt="看不清？换一张" class="al_yzmimg" /></td>
      </tr>
      <tr>
        <td class="al_xm"></td>
        <td><input type="submit" name="submit1" value="确认登陆" title="确认登陆" class="al_button"><input type="reset" name="reset" value="取消重置" title="取消重置" class="al_button"></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      </table>
	</td>
  </tr>
  <tr>
    <td><div class="al_copy">copyright &copy; 2010 www.963123.com, all right reserved.</div></td>
  </tr>
</table>
</form>
<div id="loginbg"></div>
</div>
</body>
</html>